
{__NOLAYOUT__}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册页</title>
    <link rel="stylesheet" href="__PUBLIC__/css/register.css">
</head>
<body>
<div class="head">
    <div class="head_center">
        <div class="logo">
            <img src="__PUBLIC__/image/ry_logo.png">
        </div>

        <div class="logo_txt">
            <b style="color: #cccccc;font-size: 16px;">|</b>
            <b><a href="__URL__/index.html" class="ry_shop">荣耀商城</a></b>
        </div>
    </div>
</div>

<div class="main">
    <div class="register">
        <div class="reg">
            <a>
                <i class="icon1"></i>
                <samp>快速注册</samp>
            </a>
        </div>
        <div class="reg_r">
            已有华为账号
            <a href="__URL__/login.html">登录></a>
        </div>

        <div class="reg_d">
            <form method="post" action="__URL__/register_save" name="myform" onsubmit="return check();">
                <div class="input">
                    <div class="input_l">
                        用户名
                    </div>
                    <div class="input_r">
                        <input type="text" name="username" placeholder="请输入用户名" class="in" >
                    </div>
                </div>
                <div class="input">
                    <div class="input_l">
                        手机号
                    </div>
                    <div class="input_r">
                        <input type="text" name="phone" placeholder="请输入手机号" class="in">
                    </div>
                </div>
                <div class="input">
                    <div class="input_l">
                        密码
                    </div>
                    <div class="input_r">
                        <input type="text" name="password" placeholder="请输入密码" class="in">
                    </div>
                </div>
                <div class="input">
                    <div class="input_l">
                        确认密码
                    </div>
                    <div class="input_r">
                        <input type="text" name="password2" placeholder="请再次输入密码" class="in">
                    </div>
                </div>
                <div class="input">
                    <div class="input_l">
                        邮箱账号
                    </div>
                    <div class="input_r">
                        <input type="email" name="email" placeholder="请输入邮箱帐号" class="in">
                    </div>
                </div>
                <div class="input">
                    <div class="input_l">
                        验证码
                    </div>
                    <div class="input_r">
                        <input type="text" name="captcha" placeholder="请输入验证码" class="in" style="width: 120px">
                    </div>
                    <div class="captcha">
                        <img src="__URL__/captcha" width="100px" onclick="this.src='__URL__/captcha/s='+Math.random()"
                             style="cursor: pointer" title="点击刷新图片验证码">
                    </div>
                </div>
                <div class="reg_btn">
                    <input type="submit" value="注册">
                </div>
            </form>
        </div>
    </div>
</div>


<div class="footer">
    <p>
        <a href="">用户协议</a>
        <em class="foot_em">|</em>
        <a href="">隐私政策</a>
        <em class="foot_em">|</em>
        <a href="">常见问题</a>
    </p>
    <p>Copyright © 2011-2017 华为技术有限公司 版权所有 保留一切权利</p>
    <p>苏B2-20070200号 | 苏ICP备09062682号-9</p>
</div>
<script type="text/javascript">
    function check() {
        if (myform.username.value==""){
            alert("用户名为空");
            myform.username.focus();
            return false;
        }
        if (myform.phone.value==""){
            alert("手机号为空");
            myform.username.focus();
            return false;
        }
        if (myform.email.value==""){
            alert("邮箱地址为空");
            myform.email.focus();
            return false;
        }
        if (myform.password.value==""){
            alert("密码为空");
            myform.password.focus();
            return false;
        }
        if (myform.password.value != myform.password2.value){
            alert("2次密码不一致");
            myform.password.focus();
            return false;
        }
        if (myform.captcha.value==""){
            alert("验证码为空");
            myform.password.focus();
            return false;
        }
    }
</script>
</body>
</html>